package homework;

public class MyGift implements  Runnable{
    private int gift =100;
    @Override
    public void run() {
        while (true){
            if (gift<10)break;
            System.out.println(Thread.currentThread().getName()+"还有"+gift+"件礼物");
            gift--;
        }
    }
}
